/*
 * M.cpp
 *
 *  Created on: 2012-5-2
 *      Author: 伪尘子
 */

#include <iostream>
#include <fstream>
#include <sstream>

using namespace std;
void test1(){
	fstream fs("test1.txt",ios::in);
	char str[256];
	fs.getline(str,256);
	cout<<"Str:"<<str<<endl;
	fs.close();

}

void test2(){

	fstream fs("test1.txt",ios::out);
	char str[256];
	for(int i=0;i<256;i++){
		str[i]=i;
	}
	fs.write(str,256);
	fs.close();
}


